package com.csust;

public class Cat {
    private String name = "招财猫";
    public int age = 10;
    public Cat() {
    }

    public Cat(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                '}';
    }

    public void hi(){
//        System.out.println("hi,I am a "+name);
    }

}
